<html>
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<body>
<?php 
include('config.php');
if($_POST['num_glsr']!=0 and $_POST['num_glsr']!='')
{
?>
<table width="800"  border="0" cellpadding="0" bgcolor="#FDF9EE" id="table7">
	<tr>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">&nbsp;</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Location</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Longitude</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Latitude</font></td>
		<td width="100" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Owned By</font></td>
		<td width="78" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Capacity(KL)</font></td>
		<td width="84" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Status</font></td>
		<td width="109" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Condition of Reservoirs</font></td>
		<td width="129" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Connected or Not with pipeline</font></td>
	</tr>
	<?php
$no=$_POST['num_glsr'];
if($no>0) 
{
for($i=1; $i<=$no; $i++)
{
?>
	<tr>
		<td><input type="text" name="glsr_id<?php echo $i;?>" id="glsr_id<?php echo $i;?>" size="18" class="txt5" value="GLSR<?php echo $i;?>" readonly /></td>
		<td width="70" align="center">
			<input type="text" name="glsr_location<?php echo $i;?>" id="glsr_location<?php echo $i;?>" size="20" class="txt5"></td>
		<td width="70" align="center">
			<input type="text" name="glsr_longitude<?php echo $i;?>" id="glsr_longitude<?php echo $i;?>" size="20" class="txt5" onBlur="float1(this,67,80)"></td>
		<td width="70" align="center">
			 <input type="text" name="glsr_latitude<?php echo $i;?>" id="glsr_latitude<?php echo $i;?>" size="20" class="txt5" onBlur="float1(this,20,32)"></td>
		<td align="center" width="100">
			<select size="1" name="glsr_supply<?php echo $i;?>" id="glsr_supply<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($body_to_supply as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  		</select>
	  </td>
	 	<td align="center" width="78">
			<input type="text" name="glsr_capacity<?php echo $i;?>" id="glsr_capacity<?php echo $i;?>" size="20" class="txt5" onKeyUp="float(this)" />
	  </td>
		<td align="center" width="84">
			<select size="1" name="glsr_status<?php echo $i;?>" id="glsr_status<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($status as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  </select>		</td>
	  	<td align="center" width="109">
			<select size="1" name="glsr_condition<?php echo $i;?>" id="glsr_condition<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($condition as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  		</select>
	  </td>
		<td align="center" width="129">
			<font style="font-size: 9pt" face="Verdana" color="#000000">
				<input type="radio" name="glsr_connect<?php echo $i;?>" id="glsr_connect<?php echo $i;?>" value="yes">Yes &nbsp;
				<input type="radio" name="glsr_connect<?php echo $i;?>" id="glsr_connect<?php echo $i;?>" value="no" checked="checked">No &nbsp;
		  </font>
	  </td>
	</tr>	
<?php 
}
}
?>
<input type="hidden" name="countglsr" id="countglsr" value="<?php echo $no;?>"/>
</table>
<?php }?>

</body>
</html>			
	